package com.itsc.entities;

import java.util.Date;
import java.util.Set;

public class Order {

	private Integer order_id;
	private String order_no;		//订单号
	private String order_name;
	private String order_addr;
	private String order_phone;		//联系电话
	private Date order_time;		//下单时间
	private String go_time;			//送货时间
	private String order_bz;		//订单备注
	private String order_state;		//订单状态
	private Integer order_by_num;	//购买商品数量
	private Float order_allprice;	//总价格
	
	//一个用户有多个订单，一对多的关系
	private User user;
	
	//一个订单有多个商品，一个商品可在多个订单上，多对多
	private Set<Product> productSet;
	
	public Integer getOrder_id() {
		return order_id;
	}

	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}

	public String getOrder_name() {
		return order_name;
	}

	public void setOrder_name(String order_name) {
		this.order_name = order_name;
	}

	public String getOrder_addr() {
		return order_addr;
	}

	public void setOrder_addr(String order_addr) {
		this.order_addr = order_addr;
	}

	public Date getOrder_time() {
		return order_time;
	}

	public void setOrder_time(Date order_time) {
		this.order_time = order_time;
	}

	public String getGo_time() {
		return go_time;
	}

	public void setGo_time(String go_time) {
		this.go_time = go_time;
	}

	public String getOrder_bz() {
		return order_bz;
	}

	public void setOrder_bz(String order_bz) {
		this.order_bz = order_bz;
	}

	public String getOrder_state() {
		return order_state;
	}

	public void setOrder_state(String order_state) {
		this.order_state = order_state;
	}

	public Integer getOrder_by_num() {
		return order_by_num;
	}

	public void setOrder_by_num(Integer order_by_num) {
		this.order_by_num = order_by_num;
	}

	public Float getOrder_allprice() {
		return order_allprice;
	}

	public void setOrder_allprice(Float order_allprice) {
		this.order_allprice = order_allprice;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Set<Product> getProductSet() {
		return productSet;
	}

	public void setProductSet(Set<Product> productSet) {
		this.productSet = productSet;
	}

	public String getOrder_phone() {
		return order_phone;
	}

	public void setOrder_phone(String order_phone) {
		this.order_phone = order_phone;
	}

	public String getOrder_no() {
		return order_no;
	}

	public void setOrder_no(String order_no) {
		this.order_no = order_no;
	}

	
	
}
